package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.SalaryFeedbackExample.E_ANSWER;
import static org.jsola.hr.example.SalaryFeedbackExample.E_ANSWER_STATUS;
import static org.jsola.hr.example.SalaryFeedbackExample.E_ANSWER_TIME;
import static org.jsola.hr.example.SalaryFeedbackExample.E_BILL_ID;
import static org.jsola.hr.example.SalaryFeedbackExample.E_COMPANY_ID;
import static org.jsola.hr.example.SalaryFeedbackExample.E_QUESTION;
import static org.jsola.hr.example.SalaryFeedbackExample.M_ANSWER_MAX;
import static org.jsola.hr.example.SalaryFeedbackExample.M_BILL_ID_MAX;
import static org.jsola.hr.example.SalaryFeedbackExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.SalaryFeedbackExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.SalaryFeedbackExample.M_QUESTION_MAX;
import static org.jsola.hr.example.SalaryFeedbackExample.N_ANSWER;
import static org.jsola.hr.example.SalaryFeedbackExample.N_ANSWER_STATUS;
import static org.jsola.hr.example.SalaryFeedbackExample.N_ANSWER_TIME;
import static org.jsola.hr.example.SalaryFeedbackExample.N_BILL_ID;
import static org.jsola.hr.example.SalaryFeedbackExample.N_COMPANY_ID;
import static org.jsola.hr.example.SalaryFeedbackExample.N_QUESTION;

/**
 * 工资条反馈记录
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【工资条反馈记录】的参数")
@Data
public class SalaryFeedbackAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_BILL_ID, example = E_BILL_ID)
    @Length(max = 32, message = M_BILL_ID_MAX)
    private String billId;

    @ApiModelProperty(notes = N_QUESTION, example = E_QUESTION)
    @Length(max = 255, message = M_QUESTION_MAX)
    private String question;

    @ApiModelProperty(notes = N_ANSWER, example = E_ANSWER)
    @Length(max = 255, message = M_ANSWER_MAX)
    private String answer;

    @ApiModelProperty(notes = N_ANSWER_TIME, example = E_ANSWER_TIME)
    private Date answerTime;

    @ApiModelProperty(notes = N_ANSWER_STATUS, example = E_ANSWER_STATUS)
    private Boolean answerStatus;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;


}

